<%--
    Document   : userList
    Created on : 2013-8-9, 16:41:56
    Author     : Administrator
--%>

<%@page import="com.json.database.UserDao"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page  import="java.util.*"%>
<%@page import="com.json.bean.User" %>
<%  UserDao userdao = new UserDao();
        LinkedList<User> list = userdao.getUserLisk();
        request.setAttribute("list", list);%>

<% LinkedList<User> list1 = (LinkedList<User>) request.getAttribute("list");%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>管理用户</title>
    </head>
    <body>
    <center>
        <h1>管理用户</h1>

        <table  border="1">
            <tr >
                <th>用户ID</th>
                <th>用户名</th>
                
                
               
                <th>删除</th>
            </tr>

            <% if (list1 != null){
                    for(User user : list1){%>
            <tr >
                <td ><%=user.getId()%></td>
                <td><%=user.getUsername()%></td>
               <!-- <td><a href="Edit.jsp?id=<%=user.getId()%>">修改</a></td>-->
                <td><a href="Dell.jsp?id=<%=user.getId()%>">删除</a></td>
            </tr>
            <%}
                }%>
        </table>
    </center>
</body>
</html>
